.message-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
}

.message-list-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.message-list-empty-text {
  font-size: 16px;
}

.message-item {
  display: flex;
  gap: 12px;
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-item-user {
  flex-direction: row-reverse;
}

.message-item-user .message-content {
  align-items: flex-end;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: #2a2a2a;
}

.message-item-user .message-avatar {
  background: #4a9eff;
}

.message-item-assistant .message-avatar {
  background: #6b46c1;
}

.message-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-item-user .message-content {
  align-items: flex-end;
}

.message-text {
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
  word-wrap: break-word;
}

.message-item-user .message-text {
  background: #4a9eff;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-item-assistant .message-text {
  background: #2a2a2a;
  color: #fff;
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 11px;
  color: #666;
  padding: 0 4px;
}

.message-loading {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #2a2a2a;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.message-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  animation: loadingDot 1.4s infinite ease-in-out;
}

.message-loading span:nth-child(1) {
  animation-delay: -0.32s;
}

.message-loading span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loadingDot {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

